'use strict';let _fj,_wy,_1j,_Fo=!0;var _Co=_wj(function*(a=!1){if(a||_Fo)yield b=>_vi(b),_3t(),_Fo=!1});function _3t(){_eh=_4r=_Ij=_yf=_bj=null;_Ro={}}
let _Wd=_Et(function*(a=0,b=!1){const c=_fj[0];yield _Pi(a);if(c==_fj[0]){if(b)if("runScript"==_1j){if(a=yield h=>_ag(h),_6p("stuckAction",{action:"runScript",answer:a}),c==_fj[0]&&(_fj.length=1,!a))return}else _6p("stuckAction",{action:_1j});_fj.shift();_1w()}}),_1w=_Et(function*(a,b=null){if(a)a:if(_fj.push([a,b]),1<_fj.length){b=4;if("sendInput"==_1j){a=_Kg(_Sg,a,0,"sequence",0)||{};if("stopSendInput"==a.action){_rd([],_Qu,a.params||{});_fj.shift();break a}b=8}else"wait"==_1j&&(b=30);_fj.length==
b&&_Wd(1200,!0);return}for(_Fo=!0;_fj.length;){const c=_fj[0];[a,b]=c;(a=_Sg[a])&&(yield _Ji(a,null,b));if(c!=_fj[0])break;_fj.shift()}}),_Mo=0;
var _Ji=_wj(function*(a,b,c){c||(c=_aa());let h=0;a:for(let e of a){yield _Co();if(h++||!b){_9i=null;let f;"hoveredTabs"==e.targets&&e.sequence&&1==e.sequence.length&&(a=e.sequence[0],f="object"==typeof _vj(a.action,a.params));b=e.targets&&!f?yield _fr(c,_4j,e.targets):_Ca?[[_Ca]]:[]}b:for(let {action:f,params:k}of e.sequence||[]){yield _Co();let l=_vj(f,k);if("object"==typeof l)b=yield _Ji(l,null,c);else{_1j=f;_9i&&(b.forEach(d=>{for(let g=0;g<d.length;++g)_9i[d[g]]&&(d[g]=_9i[d[g]])}),_9i=null);
try{let d=yield g=>l(b,g,k||{},c);if(!_Mg(d)){if("inner"==d.break)break b;if("outer"==d.break)break a}b=d}catch(d){_6p("error",{action:f,stack:d.stack,params:"saveUrl"==f?k:void 0})}_Fo=!0}}}return b});
_2i.action={activateTabs:{name:"Activate tabs",grp:"tab",h:1,value:_pi},reloadTabs:{name:"Reload tabs",grp:"tab",value:_yl},goBackTabs:{name:"Go back",grp:"tab",value:_ri},goForwardTabs:{name:"Go forward",grp:"tab",value:_9e},goUpURL:{name:"Go upper URL",grp:"tab",h:1,value:_qt},loadUrls:{name:"Open URL",grp:"tab",h:1,value:_a},highlightTabs:{name:"Select tabs",grp:"tab",h:1,value:_G},pinTabs:{name:"Pin tabs",grp:"tab",value:_sj},zoomTabs:{name:"Zoom tabs",grp:"tab",value:_H},muteTabs:{name:"Mute tabs",
grp:"tab",h:1,value:_Di},moveTabs:{name:"Move tabs",grp:"tab",h:1,value:_at},detachTabs:{name:"Detach tabs",grp:"tab",h:1,value:_Ht},groupTabs:{name:"Group tabs",grp:"tab",h:1,value:_ku},duplicateTabs:{name:"Duplicate tabs",grp:"tab",h:1,value:_7},openInIncognito:{name:"Open in incognito",grp:"tab",h:1,value:_Vf},closeTabs:{name:"Close tabs",grp:"tab",h:1,value:_Zu},undoClose:{name:"Reopen tabs",grp:"tab",h:1,value:_0w,perms:"ses"},unloadTabs:{name:"Unload tabs",grp:"tab",h:1,value:_Sh},favoriteTabs:{name:"Favorite tabs",
grp:"tab",h:1,value:_ts},alterTgtTabs:{name:"Alter target tabs",grp:"",value:_b},focusWin:{name:"Focus",grp:"win",h:1,value:_Tt},moveResizeWins:{name:"Move/Resize",grp:"win",h:1,value:_ls},fitWinsToGrid:{name:"Fit to grid",grp:"win",h:1,value:_ls},tileWins:{name:"Tile",grp:"win",h:1,value:_mp},minimizeWins:{name:"Minimize",grp:"win",value:_La(_sh)},maximizeWins:{name:"Maximize",grp:"win",value:_La(_Gw)},restoreWins:{name:"Restore",grp:"win",h:1,value:_qo},fullscreenWins:{name:"Fullscreen",grp:"win",
value:_7p},hideWins:{name:"Hide",grp:"win",h:1,value:_pj},scrollWins:{name:"Scroll",grp:"win",h:1,value:_fh},topmostWins:{name:"Stay on top",grp:"win",h:1,value:_La(_zo)},sendWinsToBottom:{name:"Send to bottom",grp:"win",h:1,value:_Vt},openBookmarks:{name:"Open bookmarks",grp:"bmrk",h:1,value:_a,perms:"bkm"},bookmarkTabs:{name:"Bookmark tabs",grp:"bmrk",h:1,value:_A,perms:"bkm"},bookmarkUrls:{name:"Bookmark URL",grp:"bmrk",h:1,value:_A,perms:"bkm"},openMenu:{name:"Open menu",grp:"menu",h:1,value:_gj},
closeMenu:{name:"Close menu",grp:"menu",value:_Cj},moveSelectMark:{name:"Move item mark",grp:"menu",h:1,value:_4w},selectMarkedItem:{name:"Select menu item",grp:"menu",h:1,value:_fi},clpbrdCut:{name:"Clipbrd cut",grp:"clbrd",h:1,value:_fu(_md)},clpbrdCopy:{name:"Clipbrd copy",grp:"clbrd",h:1,value:_fu(_Xh)},clpbrdPaste:{name:"Clipbrd paste",grp:"clbrd",h:1,value:_fu(_zf)},clpbrdPut:{name:"Clipbrd put",grp:"clbrd",h:1,value:_Kj()},copyElemUrl:{name:"Copy hovered URL",grp:"clbrd",h:1,value:_Fi,perms:"hst"},
copyLinks:{name:"Copy selected URLs",grp:"clbrd",h:1,value:_ae},extractURLs:{name:"Extract URLs",grp:"clbrd",h:1,value:_Me},txtToUrl:{name:"Text to URL",grp:"clbrd",h:1,value:_Vu},delDupLines:{name:"Erase dup. lines",grp:"clbrd",h:1,value:_of},clpbrdDiscard:{name:"Discard",grp:"",h:1,value:_Qu},setVolume:{name:"Change volume",grp:"sys",h:1,value:_Yy},showDesktop:{name:"Show desktop",grp:"sys",h:1,value:_ed},setMonBright:{name:"Screen brightness",grp:"sys",h:1,value:_Ng},screenSaver:{name:"Screen saver",
grp:"sys",h:1,value:_et("scrSvr")},setMonPower:{name:"Turn off screen",grp:"sys",h:1,value:_et("monOff")},brkActSeq:{name:"Continue chain if",grp:"exec",h:1,value:_Bu},setSwtchSt:{name:"Set switch state",grp:"exec",h:1,value:_bi},wait:{name:"Wait",grp:"exec",h:1,value:_K},saveUrl:{name:"Save URL",grp:"other",h:1,value:_Gy},playAudio:{name:"Play audio",grp:"other",h:1,value:_lt},insertText:{name:"Insert text",grp:"other",h:1,value:_Kj(!0)},sendInput:{name:"Synthesize input",grp:"other",h:1,value:_py},
stopSendInput:{name:"Stop synth input",grp:"other",h:1,value:_rd},runCommand:{name:"Open file/program",grp:"other",h:1,value:_E},runScript:{name:"Run script",grp:"other",h:1,value:_T,perms:"hst"},screenShot:{name:"Take screenshot",grp:"",h:1,value:_Qu},openNTP:{name:"Open new tab",h:1,value:{gener:_nh}},goBack:{name:"Back",h:1,value:[{sequence:[{action:"goBackTabs"}],targets:"currentTab"}]},goForward:{name:"Forward",h:1,value:[{sequence:[{action:"goForwardTabs"}],targets:"currentTab"}]},reload:{name:"Reload",
h:1,value:[{sequence:[{action:"reloadTabs"}],targets:"currentTab"}]},zoomIn:{name:"Zoom in",h:1,value:[{sequence:[{action:"zoomTabs",params:{type:1,steps:1}}],targets:"currentTab"}]},zoomOut:{name:"Zoom out",h:1,value:[{sequence:[{action:"zoomTabs",params:{type:-1,steps:1}}],targets:"currentTab"}]},duplicate:{name:"Duplicate tab",h:1,value:[{sequence:[{action:"duplicateTabs"}],targets:"currentTab"}]},detach:{name:"Detach tab",h:1,value:[{sequence:[{action:"detachTabs"}],targets:"currentTab"}]},switchPrev:{name:"Switch to previous tab",
h:1,value:[{sequence:[{action:"activateTabs"}],targets:"prevUsedTab"}]},switchLeft:{name:"Switch to left tab",value:[{sequence:[{action:"activateTabs"}],targets:"leftTabWrap"}]},switchRight:{name:"Switch to right tab",value:[{sequence:[{action:"activateTabs"}],targets:"rightTabWrap"}]},switchLeftmost:{name:"Switch to leftmost tab",value:[{sequence:[{action:"activateTabs"}],targets:"firstTab"}]},switchRightmost:{name:"Switch to rightmost tab",value:[{sequence:[{action:"activateTabs"}],targets:"lastTab"}]},
pin:{name:"Pin tab",h:1,value:[{sequence:[{action:"pinTabs",params:{mode:_up}}],targets:"currentTab"}]},mute:{name:"Mute tab",h:1,value:[{sequence:[{action:"muteTabs",params:{mode:_up}}],targets:"currentTab"}]},close:{name:"Close tab",h:1,value:{gener:_Qs}},closeLefts:{name:"Close left tabs",h:1,value:[{sequence:[{action:"closeTabs"}],targets:"allLeftTabs"}]},closeRights:{name:"Close right tabs",h:1,value:[{sequence:[{action:"closeTabs"}],targets:"allRightTabs"}]},closeOther:{name:"Close other tabs",
h:1,value:[{sequence:[{action:"closeTabs"}],targets:"otherTabs"}]},closeWin:{name:"Close window",h:1,value:[{sequence:[{action:"closeTabs"}],targets:"currWinTabs"}]},reopen:{name:"Reopen closed tab",h:1,value:[{sequence:[{action:"undoClose"}]}],perms:"ses"},openElemUrl:{name:"Open element URL",h:1,value:{gener:_t},perms:"hst"},saveElemUrl:{name:"Save element URL",h:1,value:{gener:_1u},perms:"hst"}};
